package com.ebupt.migu.music.broadExt.controller;


import com.alibaba.fastjson.JSONObject;
import com.ebupt.migu.music.broadExt.entity.broadExt.ActListVo;
import com.ebupt.migu.music.broadExt.service.BroadExtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公播平台对外接口
 */
@RestController
@RequestMapping("/broadExt")
public class BroadExtController {

    @Autowired
    private BroadExtService broadExtService;

    /**
     * 获取活动列表
     * @return
     */
    @PostMapping(value = "/actList")
    public JSONObject actList(@RequestBody ActListVo actListVo){
       return broadExtService.actList(actListVo);
    }
}
